package com.xdf.whiteaccount.dao;

import org.springframework.stereotype.Repository;
import java.util.List;
import com.xdf.whiteaccount.entity.DyeGreyDetail;
import com.xdf.whiteaccount.utils.Example;
import org.apache.ibatis.annotations.Param;

/**
 * @Description : 由代码生成器生成
 * @Author : chanchaw
 * @Date :  2023-12-15 16:08:04
 */
@Repository
public interface DyeGreyDetailMapper {
    int insert(DyeGreyDetail record);

    int insertSelective(DyeGreyDetail record);

    int multiInsert(List<DyeGreyDetail> list);

    int updateByPrimaryKey(DyeGreyDetail record);

    int updateByPrimaryKeySelective(DyeGreyDetail record);

    // 根据主键删除
    int deleteByPrimaryKey(Integer id);
    // 根据主键查询
    DyeGreyDetail selectByPrimaryKey(Integer id);

    List<DyeGreyDetail> selectAll();

    int save(DyeGreyDetail record);
    int multiSave(List<DyeGreyDetail> list);

    //================= 下面是 Example 代码 ==================
    List<DyeGreyDetail> selectByExample(@Param("example") Example example);
    int updateByExampleSelective(@Param("record") DyeGreyDetail record,@Param("example") Example example);
    int insertByExampleSelective(@Param("record") DyeGreyDetail record,@Param("example") Example example);
    int deleteByExample(@Param("example") Example example);

    DyeGreyDetail getNext(Integer id);
    DyeGreyDetail getPrev(Integer id);
    DyeGreyDetail getFirst();
    DyeGreyDetail getLast();
    //=================以上是自动生成的代码，自定义代码请写在下面==================

    // 使用白坯打卷汇总表 jrkbillsum 主键数组查询并翻译为白坯发货明细数据数组
    List<DyeGreyDetail> get8JrkbillsumPK(List<Integer> jrkbillsumIdList);
}